home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gdm.postrm < prev    next >
Text File  |  2009-10-20  |  974b  |  34 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. if [ "$1" = "purge" ] ; then
  5.         rm -f /etc/default/gdm
  6.         if [ -d /etc/gdm ]; then
  7.                 rmdir /etc/gdm/Init /etc/gdm/PreSession /etc/gdm/PostSession /etc/gdm/PostLogin /etc/gdm/Sessions /etc/gdm 2>/dev/null || true
  8.         fi
  9.         if [ -d /var/lib/gdm ]; then
  10.                 rm -r /var/lib/gdm
  11.         fi
  12.         if [ -d /var/log/gdm ]; then
  13.                 rm -r /var/log/gdm
  14.         fi
  15.         if getent passwd gdm >/dev/null; then
  16.                 if [ -x /usr/sbin/deluser ]; then
  17.                         deluser --system gdm
  18.                 fi
  19.         fi
  20.         if getent group gdm >/dev/null; then
  21.                 if [ -x /usr/sbin/delgroup ]; then
  22.                         delgroup --system gdm
  23.                 fi
  24.         fi
  25. fi
  26. # Automatically added by dh_installdebconf
  27. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  28.     . /usr/share/debconf/confmodule
  29.     db_purge
  30. fi
  31. # End automatically added section
  32.  
  33. exit 0
  34.